{include file="public/header" /}
<div class="page">
    <form method="get" name="formSearch">
        <div class="sc-search-form">
            <input type="hidden" name="member_id" class="txt" value='{$Request.param.member_id}'>
            <dl>
                <dt>关键词</dt>
                <dd><input type="text" name="keyword" class="txt" value='{$Request.param.keyword}'></dd>
            </dl>
            <dl>
                <dt>{$Think.lang.admin_predeposit_maketime}</dt>
                <dd><input type="text" id="stime" name="stime" class="txt date" value="{$Request.param.stime}" >
                    ~
                    <input type="text" id="etime" name="etime" class="txt date" value="{$Request.param.etime}" >
                </dd>
            </dl>
            <div class="btn_group">
                <a href="javascript:document.formSearch.submit();" class="btn " title="{$Think.lang.sc_query}">{$Think.lang.sc_query}</a>
            </div>
        </div>
    </form>
    <table class="sc-default-table">
        <thead>
            <tr class="thead">
                <th class="align-center">{$Think.lang.admin_predeposit_changetime}</th>
                <th width="150">业务类型</th>
                <th>{$Think.lang.admin_predeposit_pricetype_available}({$Think.lang.sc_yuan})</th>
                <th>当前余额({$Think.lang.sc_yuan})</th>
                <th>{$Think.lang.admin_predeposit_pricetype_freeze}({$Think.lang.sc_yuan})</th>
                <th>{$Think.lang.admin_predeposit_log_desc}</th>
            </tr>
        </thead>
        <tbody>
            {notempty name="list_log"}
            {foreach name="list_log" item="v" key="k" }
            <tr class="hover">
                <td class="nowarp align-center">{notempty name="$v.lg_addtime"}{$v.lg_addtime|date='Y-m-d H:i:s',###}{/notempty}</td>
                <th>{$v.lg_type|dict_convert="lg_type",###}</th>
                <td class="{if($v['lg_av_amount'] > 0)}color-green{/if}"> <?php echo floatval($v['lg_av_amount']) ? (floatval($v['lg_av_amount']) > 0 ? '+' : null ).$v['lg_av_amount'] : null;?></td>
                <td>{$v.lg_balance}</td>
                <td><?php echo floatval($v['lg_freeze_amount']) ? (floatval($v['lg_freeze_amount']) > 0 ? '+' : null ).$v['lg_freeze_amount'] : null;?></td>
                <td>{$v.lg_desc}
                    {notempty name="$v.lg_admin_name"}
                    ( {$Think.lang.admin_predeposit_adminname} {$v.lg_admin_name}  )
                    {/notempty}
                </td>
            </tr>
           {/foreach}
           {else /}
            <tr class="no_data">
                <td colspan="6">{$Think.lang.sc_no_record}</td>
            </tr>
            {/notempty}
        </tbody>
    </table>
    {$show_page}

</div>

<script language="javascript">
    $(function() {
        $('#stime').datepicker({dateFormat: 'yy-mm-dd'});
        $('#etime').datepicker({dateFormat: 'yy-mm-dd'});
    });
</script>